from htstool.models import *
from htstool.forms import SummarisationForm

form = SummarisationForm()
g_nonrad=PlateGroup.objects.get(plate_type=PlateGroup.NORM, platecommonattr__condition='NR')
g_irrad=PlateGroup.objects.get(plate_type=PlateGroup.NORM, platecommonattr__condition='IR')

form.summarise(SummPlate.SUBTRACT, g_nonrad.id, g_irrad.id)

